#version 150

#moj_import <vsh_util.glsl>
uniform mat4 ProjMat;

uniform sampler2D Sampler0;

uniform vec4 ColorModulator;
uniform float FogEnd;

in vec2 texCoord0;
in vec4 vertexColor;

out vec4 fragColor;

void main() {
    if(isGUI(ProjMat) && FogEnd == 5.0)discard;

    vec4 color = texture(Sampler0, texCoord0) * vertexColor;
    if (color.a < 0.1) {
        discard;
    }
    fragColor = color * ColorModulator;
}
